home *** CD-ROM | disk | FTP | other *** search
- function startnewround()
- {
- var _loc1_ = this;
- grass1x = random(40);
- grass2x = random(40) + 20;
- grass3x = random(40) + 40;
- landdata();
- drawlandscape();
- _loc1_.scorchmarks.createEmptyMovieClip("temp",10);
- scorchlayer = 300;
- backdisp = random(2) + 1;
- _loc1_.background.gotoAndStop(backdisp);
- player1health = 100;
- player2health = 100;
- player1cash = 1000;
- player2cash = 1000;
- player1shield = 1;
- player2shield = 1;
- player1power = 10;
- player2power = 10;
- player1bombtype = 2;
- player2bombtype = 2;
- player1cashreport = "$" + player1cash;
- player2cashreport = "$" + player2cash;
- p1rot = - random(90);
- p2rot = random(90) + 180;
- p1x = random(200) + 50;
- a = Math.floor(p1x / landdetail);
- b = landarray[a];
- p1y = b - 39;
- p2x = random(200) + 550;
- a = Math.floor(p2x / landdetail);
- b = landarray[a];
- p2y = b - 39;
- bombcost = 0;
- _loc1_.player1healthind.lifebar._xscale = player1health;
- _loc1_.player2healthind.lifebar2._xscale = player2health;
- rotateplayers();
- player2.gunturretindicator._visible = false;
- player1.gunturretindicator._visible = false;
- }
-